﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000517 RID: 1303
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FarmStageGachaInfo : IMessage<FarmStageGachaInfo>, IMessage, IEquatable<FarmStageGachaInfo>, IDeepCloneable<FarmStageGachaInfo>, IBufferMessage
	{
		// Token: 0x170010DF RID: 4319
		// (get) Token: 0x06003AF2 RID: 15090 RVA: 0x000A2509 File Offset: 0x000A0709
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FarmStageGachaInfo> Parser
		{
			get
			{
				return FarmStageGachaInfo._parser;
			}
		}

		// Token: 0x170010E0 RID: 4320
		// (get) Token: 0x06003AF3 RID: 15091 RVA: 0x000A2510 File Offset: 0x000A0710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FarmStageGachaInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170010E1 RID: 4321
		// (get) Token: 0x06003AF4 RID: 15092 RVA: 0x000A2522 File Offset: 0x000A0722
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FarmStageGachaInfo.Descriptor;
			}
		}

		// Token: 0x06003AF5 RID: 15093 RVA: 0x000A2529 File Offset: 0x000A0729
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FarmStageGachaInfo()
		{
		}

		// Token: 0x06003AF6 RID: 15094 RVA: 0x000A2531 File Offset: 0x000A0731
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FarmStageGachaInfo(FarmStageGachaInfo other) : this()
		{
			this.beginTime_ = other.beginTime_;
			this.gachaId_ = other.gachaId_;
			this.endTime_ = other.endTime_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003AF7 RID: 15095 RVA: 0x000A256E File Offset: 0x000A076E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FarmStageGachaInfo Clone()
		{
			return new FarmStageGachaInfo(this);
		}

		// Token: 0x170010E2 RID: 4322
		// (get) Token: 0x06003AF8 RID: 15096 RVA: 0x000A2576 File Offset: 0x000A0776
		// (set) Token: 0x06003AF9 RID: 15097 RVA: 0x000A257E File Offset: 0x000A077E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long BeginTime
		{
			get
			{
				return this.beginTime_;
			}
			set
			{
				this.beginTime_ = value;
			}
		}

		// Token: 0x170010E3 RID: 4323
		// (get) Token: 0x06003AFA RID: 15098 RVA: 0x000A2587 File Offset: 0x000A0787
		// (set) Token: 0x06003AFB RID: 15099 RVA: 0x000A258F File Offset: 0x000A078F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaId
		{
			get
			{
				return this.gachaId_;
			}
			set
			{
				this.gachaId_ = value;
			}
		}

		// Token: 0x170010E4 RID: 4324
		// (get) Token: 0x06003AFC RID: 15100 RVA: 0x000A2598 File Offset: 0x000A0798
		// (set) Token: 0x06003AFD RID: 15101 RVA: 0x000A25A0 File Offset: 0x000A07A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long EndTime
		{
			get
			{
				return this.endTime_;
			}
			set
			{
				this.endTime_ = value;
			}
		}

		// Token: 0x06003AFE RID: 15102 RVA: 0x000A25A9 File Offset: 0x000A07A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FarmStageGachaInfo);
		}

		// Token: 0x06003AFF RID: 15103 RVA: 0x000A25B8 File Offset: 0x000A07B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FarmStageGachaInfo other)
		{
			return other != null && (other == this || (this.BeginTime == other.BeginTime && this.GachaId == other.GachaId && this.EndTime == other.EndTime && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003B00 RID: 15104 RVA: 0x000A2614 File Offset: 0x000A0814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BeginTime != 0L)
			{
				num ^= this.BeginTime.GetHashCode();
			}
			if (this.GachaId != 0U)
			{
				num ^= this.GachaId.GetHashCode();
			}
			if (this.EndTime != 0L)
			{
				num ^= this.EndTime.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003B01 RID: 15105 RVA: 0x000A2685 File Offset: 0x000A0885
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003B02 RID: 15106 RVA: 0x000A268D File Offset: 0x000A088D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003B03 RID: 15107 RVA: 0x000A2698 File Offset: 0x000A0898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GachaId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.GachaId);
			}
			if (this.BeginTime != 0L)
			{
				output.WriteRawTag(104);
				output.WriteInt64(this.BeginTime);
			}
			if (this.EndTime != 0L)
			{
				output.WriteRawTag(120);
				output.WriteInt64(this.EndTime);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003B04 RID: 15108 RVA: 0x000A2710 File Offset: 0x000A0910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BeginTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.BeginTime);
			}
			if (this.GachaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaId);
			}
			if (this.EndTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.EndTime);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003B05 RID: 15109 RVA: 0x000A2780 File Offset: 0x000A0980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FarmStageGachaInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BeginTime != 0L)
			{
				this.BeginTime = other.BeginTime;
			}
			if (other.GachaId != 0U)
			{
				this.GachaId = other.GachaId;
			}
			if (other.EndTime != 0L)
			{
				this.EndTime = other.EndTime;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003B06 RID: 15110 RVA: 0x000A27E4 File Offset: 0x000A09E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003B07 RID: 15111 RVA: 0x000A27F0 File Offset: 0x000A09F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 104U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.EndTime = input.ReadInt64();
						}
					}
					else
					{
						this.BeginTime = input.ReadInt64();
					}
				}
				else
				{
					this.GachaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001736 RID: 5942
		private static readonly MessageParser<FarmStageGachaInfo> _parser = new MessageParser<FarmStageGachaInfo>(() => new FarmStageGachaInfo());

		// Token: 0x04001737 RID: 5943
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001738 RID: 5944
		public const int BeginTimeFieldNumber = 13;

		// Token: 0x04001739 RID: 5945
		private long beginTime_;

		// Token: 0x0400173A RID: 5946
		public const int GachaIdFieldNumber = 9;

		// Token: 0x0400173B RID: 5947
		private uint gachaId_;

		// Token: 0x0400173C RID: 5948
		public const int EndTimeFieldNumber = 15;

		// Token: 0x0400173D RID: 5949
		private long endTime_;
	}
}
